home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 3.2 KB | 110 lines | [TEXT/CWIE] |
- // CModalBars.h -- dialog class
-
- #pragma once
-
- #include <LGADialog.h>
-
- #include "DModalBarsData.h"
-
- class LStream;
-
- class LPushButton;
- class CTabPanelGroup;
- class LScrollBar;
- class CScrollBar;
- class LSlider;
- class LLittleArrows;
- class LProgressBar;
- class LChasingArrows;
- class CControlPane;
-
-
- //----------
- class CModalBars : public LGADialog {
- public: // these comprise the programming interface for using the dialog
- static CModalBars* CreateModalBars (LCommander* inSuperCommander,
- CommandT inCommand,
- DModalBarsData* inData);
- virtual void SetFromData (DModalBarsData* inData);
- virtual DModalBarsData* GetData ();
-
- // these functions will be obsoleted
- // retained only for backwards compatibility
- virtual Boolean GetBarsChoice();
- virtual void SetBarsChoice (Int32 inChoice);
- virtual Boolean GetStandardValue();
- virtual void SetStandardValue (Int32 inValue);
- virtual Boolean GetGraphicValue();
- virtual void SetGraphicValue (Int32 inValue);
- virtual Boolean GetSliderValue();
- virtual void SetSliderValue (Int32 inValue);
- virtual Boolean GetTickMarksValue();
- virtual void SetTickMarksValue (Int32 inValue);
- virtual Boolean GetNonDirectionalValue();
- virtual void SetNonDirectionalValue (Int32 inValue);
- virtual Boolean GetLittleArrowsValue();
- virtual void SetLittleArrowsValue (Int32 inValue);
- virtual Boolean GetSpinnerValue();
- virtual void SetSpinnerValue (Int32 inValue);
- virtual Boolean GetVolumeControlValue();
- virtual void SetVolumeControlValue (Int32 inValue);
- virtual Boolean GetJimSSliderValue();
- virtual void SetJimSSliderValue (Int32 inValue);
- virtual void SetStandard2Choice (Int32 inChoice);
- virtual void SetIndeterminateChoice (Int32 inChoice);
- virtual void SetChasingArrowsChoice (Int32 inChoice);
- virtual void SetRectangleChoice (Int32 inChoice);
- virtual void SetRoundRectChoice (Int32 inChoice);
- virtual void SetBarberPoleChoice (Int32 inChoice);
- virtual void SetRoundBarberChoice (Int32 inChoice);
-
-
- public: // these comprise the implementation
- enum { class_ID = 'Mod4' };
-
- CModalBars (LStream* inStream);
- virtual ~CModalBars();
-
- virtual void ListenToMessage (MessageT inMessage,
- void *ioParam);
-
- virtual Boolean ObeyCommand (CommandT inCommand,
- void *ioParam = nil);
- virtual void FindCommandStatus (CommandT inCommand,
- Boolean &outEnabled,
- Boolean &outUsesMark,
- Char16 &outMark,
- Str255 outName);
-
- protected:
- static void RegisterClass();
- virtual void FinishCreateSelf();
- virtual void DataChanged (long inDataID);
-
- protected:
- static Boolean sIsRegistered;
- CommandT mCommand;
-
- LPushButton* mOKButton;
- CTabPanelGroup* mBarsPanel;
- LScrollBar* mStandardScroll;
- CScrollBar* mGraphicScroll;
- LSlider* mSliderScroll;
- LSlider* mTickMarksScroll;
- LSlider* mNonDirectionalScroll;
- LLittleArrows* mLittleArrowsScroll;
- CScrollBar* mSpinnerScroll;
- CScrollBar* mVolumeControlScroll;
- CScrollBar* mJimSSliderScroll;
- LProgressBar* mStandard2Bar;
- LProgressBar* mIndeterminateBar;
- LChasingArrows* mChasingArrowsBar;
- CControlPane* mRectangleBar;
- CControlPane* mRoundRectBar;
- CControlPane* mBarberPoleBar;
- CControlPane* mRoundBarberBar;
-
- DModalBarsData* mData;
-
- };
-